import React, { Suspense } from "react";
import { Link, useRoutes } from "react-router-dom";
import routes from "./router";
function App() {
  return (
    <div className="App">
      <header>
        <h1>hahahaha</h1>
        <Link to="/discover">发现音乐</Link>
        <Suspense fallback="正在加载">{useRoutes(routes)}</Suspense>
      </header>
    </div>
  );
}

export default App;
